# Contributor: Michał Polański <michal@polanski.me>
# Maintainer: Michał Polański <michal@polanski.me>
pkgname=mandown
pkgver=0.1.5
pkgrel=0
pkgdesc="Create man pages from markdown markup"
url="https://gitlab.com/kornelski/mandown"
license="Apache-2.0"
arch="all"
makedepends="cargo cargo-auditable"
source="https://gitlab.com/kornelski/mandown/-/archive/$pkgver/mandown-$pkgver.tar.gz"
options="!check" # no test suite

prepare() {
	default_prepare

	cargo fetch --target="$CTARGET" --locked
}

build() {
	cargo auditable build --frozen --release
}

package() {
	install -Dm755 target/release/$pkgname -t "$pkgdir"/usr/bin/
}

sha512sums="
de3687bd7060a4d9e91dc8a637be8bcb32bfa35a439b0f31a16ca5fd8ebc9d415d55ca072500d873741204d55e9e1051d02037baa90966e0b67a803729cf134b  mandown-0.1.5.tar.gz
"
